#region Imports

using System;
using System.Data;
using System.Drawing;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

using MetaSapiens.PageMethods;

#endregion Imports

public partial class FrmProduct : MetaSapiens.PageMethods.BasePageWithDefaultMethod
{
  [PageMethod(true)]
  public void GetFromProductID([ParamRequired, ParamName("ProdID")] string productID)
  {
    Response.Write("GetFromProductID(" + productID + ")");
  }

  [PageMethod]
  public void TestBoolean(bool b)
  {
    Response.Write("TestBoolean(" + b + ")");
  }

  [PageMethod]
  public void TestDateTime(DateTime dateTime)
  {
    Response.Write("TestDateTime(" + dateTime + ")");
  }

  [PageMethod]
  public void TestDecimal(Decimal d)
  {
    Response.Write("TestDecimal(" + d + ")");
  }

  [PageMethod]
  public void TestEnum(KnownColor color)
  {
    Response.Write("TestEnum(" + color + ")");
  }

  [PageMethod]
  public void TestEncoding(string s)
  {
    Response.Write("TestEncoding(" + s + ")");
  }

  [PageMethod]
  public void TestGuid(Guid guid)
  {
    Response.Write("TestGuid(" + guid.ToString("D") + ")");
  }

  [PageMethod, UrlFormat("~/SampleUrl/{{METHOD}}/{param}.aspx")]
  public void TestUrlFormat(int param)
  {
    // URL rewriting is performed in Global.asax
    Response.Write("TestUrlFormat(" + param + ")");
  }

  [PageMethod, UrlFormat("~/SampleUrlWithPost/{param1}.aspx")]
  public void TestUrlFormatWithPost(int param1, int param2)
  {
    // URL rewriting is performed in Global.asax
    Response.Write("TestUrlFormatWithPost(" + param1 + ", " + param2 + ")");
  }
}